<script setup>
import { ref } from 'vue'
import { onLoad, onReady } from '@dcloudio/uni-app'

onLoad(() => {
  console.log('数据加载完成')
})

onReady(() => {
  console.log('页面DOM加载完成')
})
</script>

<template>
	<view class="idx-a">
    <view class="idx-b">小兵生活</view>
    <view class="idx-c">
      <view class="idx-d"><image src="/static/svg/head-img.svg" class="wh100" /></view>
      <view class="idx-e"></view>
    </view>
  </view>
</template>

<style>
.idx-a {width: 100%; overflow: auto;}
.idx-b {padding: 20rpx 40rpx; font-size: 40rpx; color: #FFF; background-color: #3DBC59;}
.idx-c {width: calc(100% - 40rpx); padding: 10px 20rpx; background-color: #FFF; display: flex; display: -webkit-flex; justify-items: center;}
.idx-d {width: 100rpx; height: 100rpx;}
.idx-e {flex-grow: 1;}
</style>
